package com.itc.dispatch.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itc.common.core.domain.R;
import com.itc.dispatch.domain.AlarmConfig;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itc.dispatch.domain.dto.AlarmConfigDto;
import com.itc.dispatch.domain.dto.AlarmConfigPageDto;
import com.itc.dispatch.domain.dto.DataSetDto;
import com.itc.dispatch.domain.dto.TriggerDto;
import com.itc.dispatch.domain.vo.AlarmConfigVo;
import com.itc.dispatch.domain.vo.FieldDataVo;

import java.util.List;

/**
* @author 智少
* @description 针对表【alarm_config】的数据库操作Service
* @createDate 2024-07-24 15:38:12
*/
public interface AlarmConfigService extends IService<AlarmConfig> {

    R<Page<AlarmConfigVo>> getPage(Page page, AlarmConfigPageDto pageDto);

    R<AlarmConfigVo> detail(Long id );

    R change( Long id);

    R trigger(TriggerDto dto);

    R delete(Long id);

    R updateOne(AlarmConfigDto dto);

    R add(AlarmConfigDto dto);

    R<List<AlarmConfigDto>> getAlarmData();



    /**
     * 告警规则触发任务
     */
    void alarmTriggerTask();
}
